package org.example.myleet.p611;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(3 == solution.triangleNumber(new int[]{2,2,3,4}));
        Assert.isTrue(8 == solution.triangleNumber(new int[]{2,2,3,4,4}));
        Assert.isTrue(31 == solution.triangleNumber(new int[]{2,2,3,4,4,4,4}));
        Assert.isTrue(51 == solution.triangleNumber(new int[]{2,2,3,4,4,4,4,4}));
        Assert.isTrue(209 == solution.triangleNumber(new int[]{2,2,3,4,4,4,4,5,2,3,3,321,200,5,152,41,56,79,26,101,123}));
    }
}
